package com.tang.model.intermediary.chatroom;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/6 7:54
 * @Desc
 * @Remarks
 */
//中介模式
public class Test {

    public static void main(String[] args) {
        Chatroom chatroom = new Chatroom();
        User tom = new User("tom", chatroom);
        tom.say("I am tom!");
        User jerry = new User("jerry", chatroom);
        jerry.say("hello tom!");
    }

}
